package com.dianping.cat.home.dependency.config.entity;

import com.dianping.cat.home.dependency.config.BaseEntity;
import com.dianping.cat.home.dependency.config.IVisitor;










public class EdgeConfig
  extends BaseEntity<EdgeConfig>
{
  private String m_key;
  private String m_type;
  private String m_from;
  private String m_to;
  private int m_warningThreshold;
  private int m_errorThreshold;
  private double m_warningResponseTime;
  private double m_errorResponseTime;
/*  26 */   private int m_minCountThreshold = 100;





  public EdgeConfig(String key) { this.m_key = key; }




/*  37 */   public void accept(IVisitor visitor) { visitor.visitEdgeConfig(this); }



  public boolean equals(Object obj) {
/*  42 */     if (obj instanceof EdgeConfig) {
/*  43 */       EdgeConfig _o = (EdgeConfig)obj;

/*  45 */       if (!equals(getKey(), _o.getKey())) {
/*  46 */         return false;
      }

/*  49 */       return true;
    }

/*  52 */     return false;
  }


/*  56 */   public double getErrorResponseTime() { return this.m_errorResponseTime; }



/*  60 */   public int getErrorThreshold() { return this.m_errorThreshold; }



/*  64 */   public String getFrom() { return this.m_from; }



/*  68 */   public String getKey() { return this.m_key; }



/*  72 */   public int getMinCountThreshold() { return this.m_minCountThreshold; }



/*  76 */   public String getTo() { return this.m_to; }



/*  80 */   public String getType() { return this.m_type; }



/*  84 */   public double getWarningResponseTime() { return this.m_warningResponseTime; }



/*  88 */   public int getWarningThreshold() { return this.m_warningThreshold; }



  public int hashCode() {
/*  93 */     int hash = 0;

    return hash * 31 + ((this.m_key == null) ? 0 : this.m_key.hashCode());
  }




  public void mergeAttributes(EdgeConfig other) {
/* 102 */     assertAttributeEquals(other, "edge-config", "key", this.m_key, other.getKey());

/* 104 */     if (other.getType() != null) {
/* 105 */       this.m_type = other.getType();
    }

/* 108 */     if (other.getFrom() != null) {
/* 109 */       this.m_from = other.getFrom();
    }

/* 112 */     if (other.getTo() != null) {
/* 113 */       this.m_to = other.getTo();
    }

/* 116 */     this.m_warningThreshold = other.getWarningThreshold();

/* 118 */     this.m_errorThreshold = other.getErrorThreshold();

/* 120 */     this.m_warningResponseTime = other.getWarningResponseTime();

/* 122 */     this.m_errorResponseTime = other.getErrorResponseTime();

/* 124 */     this.m_minCountThreshold = other.getMinCountThreshold();
  }

  public EdgeConfig setErrorResponseTime(double errorResponseTime) {
/* 128 */     this.m_errorResponseTime = errorResponseTime;
/* 129 */     return this;
  }

  public EdgeConfig setErrorThreshold(int errorThreshold) {
/* 133 */     this.m_errorThreshold = errorThreshold;
/* 134 */     return this;
  }

  public EdgeConfig setFrom(String from) {
/* 138 */     this.m_from = from;
/* 139 */     return this;
  }

  public EdgeConfig setKey(String key) {
/* 143 */     this.m_key = key;
/* 144 */     return this;
  }

  public EdgeConfig setMinCountThreshold(int minCountThreshold) {
/* 148 */     this.m_minCountThreshold = minCountThreshold;
/* 149 */     return this;
  }

  public EdgeConfig setTo(String to) {
/* 153 */     this.m_to = to;
/* 154 */     return this;
  }

  public EdgeConfig setType(String type) {
/* 158 */     this.m_type = type;
/* 159 */     return this;
  }

  public EdgeConfig setWarningResponseTime(double warningResponseTime) {
/* 163 */     this.m_warningResponseTime = warningResponseTime;
/* 164 */     return this;
  }

  public EdgeConfig setWarningThreshold(int warningThreshold) {
/* 168 */     this.m_warningThreshold = warningThreshold;
/* 169 */     return this;
  }

  public EdgeConfig() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/config/entity/EdgeConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */